﻿using System;
using System.Security.Permissions;

namespace Toolbox.AppInstanceManager
{

    [PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
    internal class InstanceProxy : MarshalByRefObject
    {
        public static bool IsFirstInstance { get; internal set; }
        public static string[] CommandLineArgs { get; internal set; }
        public static string Sender { get; internal set; }

        public void SetCommandLineArgs(bool isFirstInstance, string sender, string[] commandLineArgs)
        {
            IsFirstInstance = isFirstInstance;
            CommandLineArgs = commandLineArgs;
            Sender = sender;
        }
    }
}
